package com.homedo.odin.solution.contract.pc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

@ApiModel(description = "更新用户基本信息bean")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class UserUpdateValidRequestBean {

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空")
    @Min(message = "用户id参数非法", value = 0)
    private Integer userId;
    /**
     * 名称
     */
    @ApiModelProperty(value = "用户名称", required = true)
    @NotNull(message = "用户名称不能为空")
    private String userName;
    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", required = true)
    private String nickName;
    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", required = true)
    private String gender;
    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String realName;
    /**
     * 用户头像
     */
    @ApiModelProperty("用户头像")
    private String userAvatar;
    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", required = true)
    private String mobile;
    /**
     * 邮箱地址
     */
    @ApiModelProperty("邮箱地址")
    private String email;
    /**
     * 身份证号码
     */
    @ApiModelProperty("身份证号码")
    private String idCardNumber;
    /**
     * 身份证照片
     */
    @ApiModelProperty("身份证照片")
    private String idCardPhoto;
    /**
     * 地址
     */
    @ApiModelProperty("地址")
    private String address;

}
